package com.love.marriage.orderInfo.mapper;

import com.love.marriage.orderInfo.entity.OrderInfo;
import com.love.marriage.orderInfo.vo.OrderInfoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import com.love.marriage.common.interfaces.permission.DataPermission;

/**
 * description:  订单表 mapper
 * author:       mybatisPlus
 * createDate:   2024-10-23 22:54:09
 * version:      1.0.0
 */
@Mapper
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    @DataPermission(table = "order_info_t")
    Page<OrderInfoVo> getPage(Page<OrderInfoVo> page, @Param("orderInfoVo") OrderInfoVo orderInfoVo);

    OrderInfoVo queryOrderInfo(@Param("id") Long id);

    OrderInfoVo queryOrderInfoByOrderNumber(@Param("orderNumber") String orderNumber);
}
